package cn.iocoder.yudao.module.wms.controller.admin.inventoryclassify.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Schema(description = "管理后台 - 存货分类新增/修改 Request VO")
@Data
public class InventoryClassifySaveReqVO {

    @Schema(description = "分类id", requiredMode = Schema.RequiredMode.REQUIRED, example = "29207")
    private Long id;

    @Schema(description = "分类编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "分类编码不能为空")
    private String code;

    @Schema(description = "分类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "分类名称不能为空")
    private String name;

    @Schema(description = "父分类id", example = "16041")
    private Long parentId;

}